<template>
    <view class="content" v-if="item">
        <rich-text :nodes="item.content"></rich-text>
        <view class="h200"></view>
        <view v-if="item.customerId" class="foot" @click="cFn">
            去客户详情
        </view>
    </view>
</template>

<script>
    export default {
        data() {
            return {
                item: ''
            }
        },
        onLoad(options) {
            this.item = this.getS('msgD')
            uni.setNavigationBarTitle({
                title: this.item.title
            })

        },
        methods: {
            cFn() {

                uni.navigateTo({
                    url: `/pages/customer/customDetail?customerId=${this.item.customerId}`
                })
            }

        }
    }
</script>
<style>
    .content {
        padding: 20rpx;
    }

    .h200 {
        height: 200rpx;
    }

    .foot {
        position: fixed;
        bottom: 60rpx;
        width: 690rpx;
        height: 80rpx;
        border-radius: 80rpx;
        background-color: red;
        color: #fff;
        font-size: 32rpx;
        text-align: center;
        line-height: 80rpx;
    }
</style>